<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.anhry.app.safety.util.Util"%>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>在线用户列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：系统管理 &gt; 在线用户查看
			</div>
		</div>
		<div id="container">
		  	<table border="0" cellpadding="0" cellspacing="0" class="mytable">
		   		<thead>
			    	<tr class="fixedHeaderTr">
			     		<th width="5%">序号</th>
			     		<th width="10%">用户名</th>
			     		<th width="10%">用户级别</th>
			     		<th width="10%">用户单位</th>
			     		<th width="20%">所属部门</th>
			     		<th width="10%">登录IP</th>
			     		<th width="10%">状态</th>
			     		<th width="20%">登录时间</th>
			    	</tr>
		   		</thead>
			   	<tbody>
			   				 <c:forEach items="${onlineUsers}" var="obj" varStatus="x">
		  	 	<tr>
					     		<td align="center">${x.index+1+(page.num-1)*page.size}</td>
					     		<td align="center">${obj.name }</td>
					     		<td align="center">${obj.usertype }</td>
					     		<td align="center">${obj.userUnit }</td>
					     		<td align="center">${obj.userDept }</td>
					     		<td align="center">${obj.address }</td>
					     		<td align="center"><font color="green">在线</font></td>
					     		<td align="center">	${obj.logintime }</td>
					    	</tr>
			    	 </c:forEach>
			   	</tbody>
		  	</table>
		  
	 	</div>
	</div>
  </body>

</html>
